package com.sangu.dianxiu.bean.repairtype;

import java.io.Serializable;
import java.util.List;

/**
 * 维修项目列表的类
 * Created by sg2 on 2015/12/31.
 */
public class RepairProjectListEntity implements Serializable{

    /**
     * rc : 0
     * items : [{"itemId":1,"itemName":"空调不制冷","price":100,"unit":"元/次","comment":"空调制冷效果不好","warranty":1,"imgUrl":"http://192.168.2.88:81/Controls/UploadFile/201601121914498001.jpg"},{"itemId":10,"itemName":"电视机有噪音","price":150,"unit":"元/次","comment":"电视机有噪音","warranty":1,"imgUrl":"http://192.168.2.88:81/Controls/UploadFile/201601121854128674.jpg"},{"itemId":3,"itemName":"洗衣机不运行","price":200,"unit":"元/次","comment":"洗衣机上电不能运行了","warranty":1,"imgUrl":"http://192.168.2.88:81/Controls/UploadFile/201601121915188388.jpg"},{"itemId":2,"itemName":"空调漏水","price":150,"unit":"元/次","comment":"空调内部漏水","warranty":2,"imgUrl":"http://192.168.2.88:81/Controls/UploadFile/201601121914599717.jpg"},{"itemId":4,"itemName":"洗衣机异响","price":100,"unit":"元/次","comment":"洗衣机异响描述","warranty":1,"imgUrl":"http://192.168.2.88:81/Controls/UploadFile/201601121915115824.jpg"},{"itemId":5,"itemName":"电视无声音","price":100,"unit":"元/次","comment":"电视无声音描述","warranty":0,"imgUrl":"http://192.168.2.88:81/Controls/UploadFile/201601121853531272.jpg"},{"itemId":6,"itemName":"电视不清楚","price":100,"unit":"元/次","comment":"电视不清楚描述","warranty":0,"imgUrl":"http://192.168.2.88:81/Controls/UploadFile/201601121854485444.jpg"},{"itemId":7,"itemName":"电视彩色异常","price":100,"unit":"元/次","comment":"电视彩色异常描述","warranty":0,"imgUrl":"http://192.168.2.88:81/Controls/UploadFile/201601121914391785.jpg"}]
     */

    private int rc;
    /**
     * itemId : 1
     * itemName : 空调不制冷
     * price : 100
     * unit : 元/次
     * comment : 空调制冷效果不好
     * warranty : 1
     * imgUrl : http://192.168.2.88:81/Controls/UploadFile/201601121914498001.jpg
     */

    private List<ItemsEntity> items;

    public void setRc(int rc) {
        this.rc = rc;
    }

    public void setItems(List<ItemsEntity> items) {
        this.items = items;
    }

    public int getRc() {
        return rc;
    }

    public List<ItemsEntity> getItems() {
        return items;
    }

    public static class ItemsEntity {
        private int itemId;
        private String itemName;
        private int price;
        private String unit;
        private String comment;
        private int warranty;
        private String imgUrl;

        public void setItemId(int itemId) {
            this.itemId = itemId;
        }

        public void setItemName(String itemName) {
            this.itemName = itemName;
        }

        public void setPrice(int price) {
            this.price = price;
        }

        public void setUnit(String unit) {
            this.unit = unit;
        }

        public void setComment(String comment) {
            this.comment = comment;
        }

        public void setWarranty(int warranty) {
            this.warranty = warranty;
        }

        public void setImgUrl(String imgUrl) {
            this.imgUrl = imgUrl;
        }

        public int getItemId() {
            return itemId;
        }

        public String getItemName() {
            return itemName;
        }

        public int getPrice() {
            return price;
        }

        public String getUnit() {
            return unit;
        }

        public String getComment() {
            return comment;
        }

        public int getWarranty() {
            return warranty;
        }

        public String getImgUrl() {
            return imgUrl;
        }
    }
}
